/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.dusin.teachassistdbservice.dao;


import java.util.List;
import java.util.Map;

/**
 *
 * @author tengyu
 */
public interface StudentDao {    
    
    boolean doCreate(Object[] bean);
    boolean doDeleteByNo(String no);
    boolean doUpdate(Object[] bean);
    public boolean doUpdatePassword(String no,String password);
    
    Map<String,Object> findByNo(String no);
    List<Map<String,Object>> findAll();
    List<Map<String,Object>> findAll(int start,int size);  
    
    //根据条件查询所有学生，条件已键值对形式存储在map中
    //List<Map<String,Object>> findAllBy(Map<String,Object> map);
    //根据教学班级查询所有学生
    List<Map<String,Object>> findAllByClassID(int classID);
    public Map<String,Object> login(String username,String password);
    
    boolean doCourse(Object[] bean); //创建选课记录
    boolean doDeleteCourse(String sno,int teachclassid);  //删除选课记录
    boolean doUpdateCourse(String sno,int teachclassid,int no,String note);
    boolean doUpdateNote(String sno,int teachclassid,String note);//更新备注

    List<Map<String, Object>> findAttendanceDetail(int teachclassId, int attendanceId);
}
